home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
codefmtr
/
poldem
/
test1.bas
< prev
next >
Wrap
BASIC Source File
|
1993-09-21
|
968b
|
46 lines
Option Explicit
Sub Main ()
'This is a sample program designed to show the functionality of this software
'
' declare all variables
Dim AnyVariable As Integer
Dim Better As String
Dim i As Integer
Dim Many(100) As Single
'loop to initialize
For i = 1 To 100
Many(i) = Rnd 'set each element to a random number
Next i
Better = "This is a better way to print a listing"
AnyVariable = 17 'a more or less random number
End Sub
Sub Wrapup ()
'This procedure wraps up processing
Dim i As Integer
For i = Forms.Count - 1 To 0 Step -1
Unload Forms(i) ' unload any forms
Next i
End ' say goodnight
' VB Pretty Printer
' Aardvark Software Inc.
' 972 Sheffield Road
' Teaneck, NJ 07666
' tel 800-4VBASIC
' tel 201-833-4355
' fax 201-833-1216
' CIS 70544,1372
End Sub